package com.data.sample.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.data.sample.entity.EquipmentUnit;
import com.data.sample.mapper.EquipmentUnitMapper;
import com.data.sample.service.IEquipmentUnitService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * 管线机组信息 Service 实现类
 *
 * @author system
 * @date 2025-10-17
 */
@Service
public class EquipmentUnitServiceImpl extends ServiceImpl<EquipmentUnitMapper, EquipmentUnit>
        implements IEquipmentUnitService {

    @Autowired
    EquipmentUnitMapper equipmentUnitMapper;

    @Override
    public List<EquipmentUnit> selectEquipmentUnit(String stationCode) {

        List<EquipmentUnit> equipmentUnitLst = equipmentUnitMapper.selectByStationCode(stationCode);

        return equipmentUnitLst;
    }
}

